import request from '@/utils/request'

// 查询城市列表
export function listSystemCity(query) {
  return request({
    url: '/business/systemCity/list',
    method: 'get',
    params: query
  })
}

/**
 * 查询所有城市信息
 * @returns {*}
 */
export function listSystemCityAll() {
  return request({
    url: '/business/systemCity/listAll',
    method: 'get',
  })
}

// 查询城市详细
export function getSystemCity(id) {
  return request({
    url: '/business/systemCity/' + id,
    method: 'get'
  })
}

// 新增城市
export function addSystemCity(data) {
  return request({
    url: '/business/systemCity',
    method: 'post',
    data: data
  })
}

// 修改城市
export function updateSystemCity(data) {
  return request({
    url: '/business/systemCity',
    method: 'put',
    data: data
  })
}

// 删除城市
export function delSystemCity(id) {
  return request({
    url: '/business/systemCity/' + id,
    method: 'delete'
  })
}
